from bs4 import BeautifulSoup

if __name__ == '__main__':
    f = open(file="The Dormouse's story.html", mode="r", encoding="utf-8")
    html = f.read()
    f.close()

    print(html)

    soup = BeautifulSoup(html, "html.parser")
    # print(soup)
    # 将soup 进行美化并输出
    print(soup.prettify())